package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OuterPromotionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OuterPromotionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdIsNull() {
            addCriterion("outer_promotion_id is null");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdIsNotNull() {
            addCriterion("outer_promotion_id is not null");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdEqualTo(String value) {
            addCriterion("outer_promotion_id =", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdNotEqualTo(String value) {
            addCriterion("outer_promotion_id <>", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdGreaterThan(String value) {
            addCriterion("outer_promotion_id >", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdGreaterThanOrEqualTo(String value) {
            addCriterion("outer_promotion_id >=", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdLessThan(String value) {
            addCriterion("outer_promotion_id <", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdLessThanOrEqualTo(String value) {
            addCriterion("outer_promotion_id <=", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdLike(String value) {
            addCriterion("outer_promotion_id like", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdNotLike(String value) {
            addCriterion("outer_promotion_id not like", value, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdIn(List<String> values) {
            addCriterion("outer_promotion_id in", values, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdNotIn(List<String> values) {
            addCriterion("outer_promotion_id not in", values, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdBetween(String value1, String value2) {
            addCriterion("outer_promotion_id between", value1, value2, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andOuterPromotionIdNotBetween(String value1, String value2) {
            addCriterion("outer_promotion_id not between", value1, value2, "outerPromotionId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdIsNull() {
            addCriterion("promotion_platform_open_id is null");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdIsNotNull() {
            addCriterion("promotion_platform_open_id is not null");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdEqualTo(String value) {
            addCriterion("promotion_platform_open_id =", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdNotEqualTo(String value) {
            addCriterion("promotion_platform_open_id <>", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdGreaterThan(String value) {
            addCriterion("promotion_platform_open_id >", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdGreaterThanOrEqualTo(String value) {
            addCriterion("promotion_platform_open_id >=", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdLessThan(String value) {
            addCriterion("promotion_platform_open_id <", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdLessThanOrEqualTo(String value) {
            addCriterion("promotion_platform_open_id <=", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdLike(String value) {
            addCriterion("promotion_platform_open_id like", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdNotLike(String value) {
            addCriterion("promotion_platform_open_id not like", value, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdIn(List<String> values) {
            addCriterion("promotion_platform_open_id in", values, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdNotIn(List<String> values) {
            addCriterion("promotion_platform_open_id not in", values, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdBetween(String value1, String value2) {
            addCriterion("promotion_platform_open_id between", value1, value2, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromotionPlatformOpenIdNotBetween(String value1, String value2) {
            addCriterion("promotion_platform_open_id not between", value1, value2, "promotionPlatformOpenId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdIsNull() {
            addCriterion("promoter_id is null");
            return (Criteria) this;
        }

        public Criteria andPromoterIdIsNotNull() {
            addCriterion("promoter_id is not null");
            return (Criteria) this;
        }

        public Criteria andPromoterIdEqualTo(String value) {
            addCriterion("promoter_id =", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdNotEqualTo(String value) {
            addCriterion("promoter_id <>", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdGreaterThan(String value) {
            addCriterion("promoter_id >", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdGreaterThanOrEqualTo(String value) {
            addCriterion("promoter_id >=", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdLessThan(String value) {
            addCriterion("promoter_id <", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdLessThanOrEqualTo(String value) {
            addCriterion("promoter_id <=", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdLike(String value) {
            addCriterion("promoter_id like", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdNotLike(String value) {
            addCriterion("promoter_id not like", value, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdIn(List<String> values) {
            addCriterion("promoter_id in", values, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdNotIn(List<String> values) {
            addCriterion("promoter_id not in", values, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdBetween(String value1, String value2) {
            addCriterion("promoter_id between", value1, value2, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPromoterIdNotBetween(String value1, String value2) {
            addCriterion("promoter_id not between", value1, value2, "promoterId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIsNull() {
            addCriterion("platform_id is null");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIsNotNull() {
            addCriterion("platform_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlatformIdEqualTo(String value) {
            addCriterion("platform_id =", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotEqualTo(String value) {
            addCriterion("platform_id <>", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdGreaterThan(String value) {
            addCriterion("platform_id >", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdGreaterThanOrEqualTo(String value) {
            addCriterion("platform_id >=", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdLessThan(String value) {
            addCriterion("platform_id <", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdLessThanOrEqualTo(String value) {
            addCriterion("platform_id <=", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdLike(String value) {
            addCriterion("platform_id like", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotLike(String value) {
            addCriterion("platform_id not like", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIn(List<String> values) {
            addCriterion("platform_id in", values, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotIn(List<String> values) {
            addCriterion("platform_id not in", values, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdBetween(String value1, String value2) {
            addCriterion("platform_id between", value1, value2, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotBetween(String value1, String value2) {
            addCriterion("platform_id not between", value1, value2, "platformId");
            return (Criteria) this;
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(String value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(String value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(String value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(String value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(String value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(String value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLike(String value) {
            addCriterion("pid like", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotLike(String value) {
            addCriterion("pid not like", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<String> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<String> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(String value1, String value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(String value1, String value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andOuterParamIsNull() {
            addCriterion("outer_param is null");
            return (Criteria) this;
        }

        public Criteria andOuterParamIsNotNull() {
            addCriterion("outer_param is not null");
            return (Criteria) this;
        }

        public Criteria andOuterParamEqualTo(String value) {
            addCriterion("outer_param =", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamNotEqualTo(String value) {
            addCriterion("outer_param <>", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamGreaterThan(String value) {
            addCriterion("outer_param >", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamGreaterThanOrEqualTo(String value) {
            addCriterion("outer_param >=", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamLessThan(String value) {
            addCriterion("outer_param <", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamLessThanOrEqualTo(String value) {
            addCriterion("outer_param <=", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamLike(String value) {
            addCriterion("outer_param like", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamNotLike(String value) {
            addCriterion("outer_param not like", value, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamIn(List<String> values) {
            addCriterion("outer_param in", values, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamNotIn(List<String> values) {
            addCriterion("outer_param not in", values, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamBetween(String value1, String value2) {
            addCriterion("outer_param between", value1, value2, "outerParam");
            return (Criteria) this;
        }

        public Criteria andOuterParamNotBetween(String value1, String value2) {
            addCriterion("outer_param not between", value1, value2, "outerParam");
            return (Criteria) this;
        }

        public Criteria andCommissionRateIsNull() {
            addCriterion("commission_rate is null");
            return (Criteria) this;
        }

        public Criteria andCommissionRateIsNotNull() {
            addCriterion("commission_rate is not null");
            return (Criteria) this;
        }

        public Criteria andCommissionRateEqualTo(BigDecimal value) {
            addCriterion("commission_rate =", value, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateNotEqualTo(BigDecimal value) {
            addCriterion("commission_rate <>", value, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateGreaterThan(BigDecimal value) {
            addCriterion("commission_rate >", value, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("commission_rate >=", value, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateLessThan(BigDecimal value) {
            addCriterion("commission_rate <", value, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("commission_rate <=", value, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateIn(List<BigDecimal> values) {
            addCriterion("commission_rate in", values, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateNotIn(List<BigDecimal> values) {
            addCriterion("commission_rate not in", values, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("commission_rate between", value1, value2, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andCommissionRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("commission_rate not between", value1, value2, "commissionRate");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}